/ Lucky drop: iron tools
group(ID=iron_shovel;ID=iron_pickaxe;ID=iron_axe;ID=iron_sword;ID=iron_hoe)@luck=2

/ Unlucky drop: explosion
type=explosion,radius=4,fire=true@luck=-2

/ lucky fort and temple
type=structure,ID=earth_lucky_fort,pos=#pPos@luck=2
type=structure,ID=earth_lucky_temple,pos=#pPos@chance=0.4@luck=2

/ giant lucky blocks
type=structure,ID=giant_earth_lucky_block_good,rotation=#pDirect@luck=2
type=structure,ID=giant_earth_lucky_block_bad,rotation=#pDirect@luck=-2

group(ID=lootplusplus:sun_chestplate;ID=lootplusplus:sun_leggings;ID=lootplusplus:sun_helmet;ID=lootplusplus:sun_boots)@luck=2

group(ID=lootplusplus:moon_chestplate;ID=lootplusplus:moon_leggings;ID=lootplusplus:moon_helmet;ID=lootplusplus:moon_boots)@luck=2

group(ID=lootplusplus:earth_chestplate;ID=lootplusplus:earth_leggings;ID=lootplusplus:earth_helmet;ID=lootplusplus:earth_boots)@luck=2

group(ID=lootplusplus:moon_staff;ID=lootplusplus:earth_staff;ID=lootplusplus:sun_staff)@luck=2

Id=lootplusplus:moon_staff,amount=1@luck=1
Id=lootplusplus:sun_staff,amount=1@luck=1
Id=lootplusplus:earth_staff,amount=1@luck=1

Id=lootplusplus:Moon_sword,amount=1@luck=1
Id=lootplusplus:Sun_sword,amount=1@luck=1
Id=lootplusplus:earth_sword,amount=1@luck=1
Id=lootplusplus:HyperSpace_Shard,amount=1@luck=1

Id=lootplusplus:Moon_block,amount=1@luck=1
Id=lootplusplus:Sun_block,amount=1@luck=1
Id=lootplusplus:Earth_soil,amount=1@luck=1

type=structure,ID=pit_trap,pos=#pPos@luck=-2
type=structure,ID=MOON,pos=#pPos@luck=1
type=structure,ID=SUN,pos=#pPos@luck=1




/ ~~~ Wells ~~~


group(type=structure,ID=earth_well;type=message,ID="A wishing well? Maybe you should throw in Earth Stone...";type=command,ID="/gamerule commandBlockOutput false";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:Earth_soil 0 replace obsidian";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:Earth_soil_fence 0 replace nether_brick_fence";type=command,ID="/give #pName lootplusplus:earth";type=block,ID=lucky:lucky_block_earth,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$bYour wish came true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag='#'randFireworksRocket)),amount=20,posY='#'bPosY+3,posOffset='#'circleOffset(2);ID=gold_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=emerald,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=dye,damage=4,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=redstone,amount=#rand(32,64),posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=2




group(type=structure,ID=earth_well;type=message,ID="A wishing well? Maybe you should throw in an Earth Etone...";type=command,ID="/gamerule commandBlockOutput false";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:grass_texture 0 replace obsidian";type=command,ID="fill ~-1 ~-1 ~-1 ~1 ~3 ~1 lootplusplus:grass_fence 0 replace nether_brick_fence";type=command,ID="/give #pName lootplusplus:earth";type=block,ID=lucky:lucky_block_earth,posY=#bPosY-3,NBTTag=(Drops=["group(type=message,ID=\"$bYour wish came true!\";type=block,ID=air,posY='#'bPosY+3;type=block,ID=beacon,posY='#'bPosY+2;type=entity,ID=FireworksRocketEntity,NBTTag=(LifeTime=20,FireworksItem=(id=fireworks,tag='#'randFireworksRocket)),amount=20,posY='#'bPosY+3,posOffset='#'circleOffset(2);ID=gold_ingot,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=diamond,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=emerald,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=dye,damage=4,amount=#rand(20,30),posY='#'bPosY+10,posOffset='#'circleOffset(2);ID=redstone,amount=#rand(32,64),posY='#'bPosY+10,posOffset='#'circleOffset(2))"]))@luck=2




group(ID=lootplusplus:air_chestplate;ID=lootplusplus:air_leggings;ID=lootplusplus:air_helmet;ID=lootplusplus:air_boots)@luck=2


group(ID=lootplusplus:water_chestplate;ID=lootplusplus:water_leggings;ID=lootplusplus:water_helmet;ID=lootplusplus:water_boots)@luck=2


group(ID=lootplusplus:fire_chestplate;ID=lootplusplus:fire_leggings;ID=lootplusplus:fire_helmet;ID=lootplusplus:fire_boots)@luck=2


group(ID=lootplusplus:ice_chestplate;ID=lootplusplus:ice_leggings;ID=lootplusplus:ice_helmet;ID=lootplusplus:Ice_boots)@luck=2

group(ID=lootplusplus:grass_chestplate;ID=lootplusplus:grass_leggings;ID=lootplusplus:grass_helmet;ID=lootplusplus:grass_boots)@luck=2

Id=lootplusplus:air_sword,amount=1@luck=1
Id=lootplusplus:fire_sword,amount=1@luck=1
Id=lootplusplus:water_sword,amount=1@luck=1
Id=lootplusplus:ice_sword,amount=1@luck=1

Id=lootplusplus:HyperSpace_Shard,amount=1@luck=1
Id=lootplusplus:earth,amount=1@luck=1
Id=lootplusplus:sun_stone,amount=1@luck=1
Id=lootplusplus:moon_stone,amount=1@luck=1
Id=lootplusplus:grass_sword,amount=1@luck=1

Id=lootplusplus:grass_crafting_table,amount=1@luck=1
Id=lootplusplus:dirt_crafting_table,amount=1@luck=1
Id=lootplusplus:grass_texture,amount=16@luck=1
Id=lootplusplus:Earth_soil,amount=16@luck=1

/ ========== TOOLS & ARMOR ==========

/ all wood, stone and gold tools
group(ID=wooden_sword;ID=wooden_shovel;ID=wooden_pickaxe;ID=wooden_axe;ID=wooden_hoe)@luck=0
group(ID=stone_sword;ID=stone_shovel;ID=stone_pickaxe;ID=stone_axe;ID=stone_hoe)@luck=0
group(ID=golden_sword;ID=golden_shovel;ID=golden_pickaxe;ID=golden_axe;ID=golden_hoe)@luck=1
/ 2-3 iron tools
group:#rand(2,3):(ID=iron_shovel;ID=iron_pickaxe;ID=iron_axe;ID=iron_sword;ID=iron_hoe)@luck=1
/ 1-2 diamond tools
group:#rand(1,2):(ID=diamond_sword;ID=diamond_shovel;ID=diamond_pickaxe;ID=diamond_axe;ID=diamond_hoe)@luck=2
/ all leather and gold armor
group(ID=leather_helmet;ID=leather_chestplate;ID=leather_leggings;ID=leather_boots)@luck=0
group(ID=golden_helmet;ID=golden_chestplate;ID=golden_leggings;ID=golden_boots;ID=golden_horse_armor)@luck=1
/ 2-3 chain and iron armor
group:#rand(2,3):(ID=chainmail_helmet;ID=chainmail_chestplate;ID=chainmail_leggings;ID=chainmail_boots)@luck=2
group:#rand(2,3):(ID=iron_helmet;ID=iron_chestplate;ID=iron_leggings;ID=iron_boots;ID=iron_horse_armor)@luck=1
/ 1-2 diamond armor
group:#rand(1,2):(ID=diamond_helmet;ID=diamond_chestplate;ID=diamond_leggings;ID=diamond_boots;ID=diamond_horse_armor)@luck=2
/ all horse armor
group(ID=iron_horse_armor;ID=golden_horse_armor;ID=diamond_horse_armor)@luck=2
/ bow and arrows
group(ID=bow;ID=arrow,amount=#rand(16,32))@luck=1

/ ========== BLOCKS ==========

ID=sponge@luck=0
ID=tnt,amount=8@luck=1
ID=obsidian,amount=14@luck=1
ID=enchanting_table@luck=2
ID=end_portal_frame,amount=#rand(2,6)@luck=2
ID=dragon_egg,amount=2@luck=0
ID=ender_chest,amount=2@luck=0
ID=beacon,amount=2@luck=0
ID=dropper,amount=8@luck=0
ID=hay_block,amount=8@luck=0

/ chests
type=block,ID=chest,tileEntity=(Items=#chestVillageBlacksmith)@luck=0
type=block,ID=chest,tileEntity=(Items=#chestBonusChest)@luck=1
type=block,ID=chest,tileEntity=(Items=#chestDungeonChest)@luck=1
type=block,ID=chest,tileEntity=(Items=#chest(contents=[(id=iron_ingot,maxAmount=8,weight=10),(id=gold_ingot,maxAmount=4,weight=10),(id=diamond,maxAmount=4,weight=10),(id=emerald,maxAmount=4,weight=10),(id=dye,Damage=4,maxAmount=4,weight=10),(id=lucky:lucky_block,maxAmount=2,weight=10),(id=golden_apple,maxAmount=2,weight=10),(id=golden_apple,Damage=1,maxAmount=2,weight=10)],maxTotalAmount=12))@luck=2

/ ========= ITEMS ==========

ID=gold_ingot,amount=#rand(8,16)@luck=1
ID=stick@luck=-1
ID=painting,amount=4@luck=0
ID=saddle,amount=10@luck=0
ID=cake@luck=0
ID=rotten_flesh@luck=-1
ID=nether_star,amount=2@luck=0
ID=red_flower,NBTTag=(display=(Name="$cRomantic Earth Rose"))@luck=-1
ID=rabbit_stew,amount=#rand(5,7)@luck=1


